package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 家长、学生关联表（多对多）
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bas_parent_student")
public class ParentStudent extends Model {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 家长id
     */
    private String parentId;

    /**
     * 学生id
     */
    private String studentId;

    /**
     * 关系
     */
    private String relation;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
